Eclipse Platform
Pre-release 3.0

org.eclipse.ui.editors.text
Class WorkspaceOperationRunner

java.lang.Object
  extended byorg.eclipse.ui.editors.text.WorkspaceOperationRunner
All Implemented Interfaces:
IRunnableContext

public class WorkspaceOperationRunner
extends Object
implements IRunnableContext

Since:
3.0

Constructor Summary
WorkspaceOperationRunner()
           
 
Method Summary
 IProgressMonitor getProgressMonitor()
          Returns the progress monitor.
 void run(boolean fork, boolean cancelable, IRunnableWithProgress runnable)
          Runs the given IRunnableWithProgress in this context.
 void run(boolean fork, boolean cancelable, IRunnableWithProgress runnable, ISchedulingRule schedulingRule)
           
 void setProgressMonitor(IProgressMonitor progressMonitor)
          Sets the progress monitor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkspaceOperationRunner

public WorkspaceOperationRunner()
Method Detail

setProgressMonitor

public void setProgressMonitor(IProgressMonitor progressMonitor)
Sets the progress monitor.

Parameters:
progressMonitor - the progress monitor to set

getProgressMonitor

public IProgressMonitor getProgressMonitor()
Returns the progress monitor. It there is no progress monitor the monitor\ is set to the NullProgressMonitor.

Returns:
the progress monitor

run

public void run(boolean fork,
                boolean cancelable,
                IRunnableWithProgress runnable)
         throws InvocationTargetException,
                InterruptedException
Description copied from interface: IRunnableContext
Runs the given IRunnableWithProgress in this context. For example, if this is a ProgressMonitorDialog then the runnable is run using this dialog's progress monitor.

Specified by:
run in interface IRunnableContext
Parameters:
fork - true if the runnable should be run in a separate thread, and false to run in the same thread
cancelable - true to enable the cancelation, and false to make the operation uncancellable
runnable - the runnable to run
Throws:
InterruptedException - propagated by the context if the runnable acknowledges cancelation by throwing this exception. This should not be thrown if cancelable is false.
InvocationTargetException - wraps any exception or error which occurs while running the runnable

run

public void run(boolean fork,
                boolean cancelable,
                IRunnableWithProgress runnable,
                ISchedulingRule schedulingRule)
         throws InvocationTargetException,
                InterruptedException
Throws:
InvocationTargetException
InterruptedException

Eclipse Platform
Pre-release 3.0

Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.